CactusBlock = class(Block)
    
function CactusBlock:init(id,tex,destoryTime)
    Block.init(self,id,tex,destoryTime)
    self.opacityBlock = true
end

function CactusBlock:shouldRenderFace(x,y,z)
    local Block = Block.Blocks[world:getBlock(x,y,z)]
    return Block.opacityBlock
end

function CactusBlock:getTex(face)
    if face==Top then return 32 end
    if face==Bottom then return 34 end
    return 33
end
function CactusBlock:tick(x,y,z)
    if not world:getBlock(x,y-1,z)==Block.sand.id then
        world:setBlock(x,y,z,Block.air.id)
    end
end
